package com.chefu.server.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author goodgoodstudy
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_server")
@ApiModel(value="Server对象", description="")
public class Server implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "服务主键")
    @TableId(value = "serve_id", type = IdType.ID_WORKER)
    private Long serveId;

    @ApiModelProperty(value = "服务分类编码")
    private Long scId;

    @ApiModelProperty(value = "服务商id")
    private Long spId;

    @ApiModelProperty(value = "服务名")
    private String name;

    @ApiModelProperty(value = "服务项目编码")
    private String serveNumber;

    @ApiModelProperty(value = "价格")
    private Long servePrice;

    @ApiModelProperty(value = "状态(正常0锁定1)")
    private Integer sStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
